//
//  JJHomepageService.m
//  iosDemo
//
//  Created by gongjian on 2018/12/14.
//  Copyright © 2018 JJ. All rights reserved.
//

#import "JJHomepageService.h"

#import "JJHomepageRequest.h"
#import "JJHomepageModel.h"
#import "JJServiceManager.h"

NSString *JJHomepageServiceIdentityGetWeather = @"JJHomepageService_getWeather";

@implementation JJHomepageService

- (void)requestGetWeather:(void (^)(JJHomepageModel *object, id otherinfo))networkSuccessResponse
	  networkFailResponse:(void (^)(NSError *error, id otherinfo))networkFailResponse {
	JJHomepageRequest *request = [[JJHomepageRequest alloc] initWithIdentity:JJHomepageServiceIdentityGetWeather parameters:@{} isEncryption:NO modelClass:[JJHomepageModel class] isSaveToMemory:NO isSaveToDisk:NO];
	request.networkSuccessResponse = networkSuccessResponse;
	request.networkFailResponse = networkFailResponse;
	
	[JJ_SERVICE_FEATURE_SET(self, JJFeatureSet) startRequest:request otherInfo:nil];
}

@end
